<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{serviceSupplierProfessionRatingList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="中介用户考评"></f:viewParam>
	   	<f:viewParam name="supplierName" value="#{serviceSupplierProfessionRatingList.parameterValues['supplierName']}"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<div style="height:50px;margin-left:10px">				
				<p:outputLabel value="中介名称："></p:outputLabel>				
				<p:inputText value="#{serviceSupplierProfessionRatingList.parameterValues['supplierName']}"></p:inputText>
				<p:outputLabel style="display:none" value="审核状态："></p:outputLabel>
				
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="ServiceSupplierList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="ServiceSupplierList.xhtml"></p:button>
				</div>		
				<div class="clearbt"></div>
			</div>
			
			<p:panel id="searchResult">
				<f:facet name="header">中介用户管理</f:facet>
				<p:dataTable value="#{serviceSupplierProfessionRatingList.resultList}" var="_serviceSupplier">
					
					<p:column>
						<f:facet name="header">名称</f:facet>
						#{_serviceSupplier.cnname}
					</p:column>
					
					<p:column width="120" style="text-align: right">
						<f:facet name="header">注册资金（万元）</f:facet>
						<h:outputText value="#{_serviceSupplier.registeredFund}">
							<f:convertNumber maxFractionDigits="0" groupingUsed="true"/>
						</h:outputText>						
					</p:column>
					
					<p:column width="70">
						<f:facet name="header">联系人</f:facet>
						#{_serviceSupplier.firstContactor}
					</p:column>
					
					<p:column width="100">
						<f:facet name="header">联系电话</f:facet>
						#{_serviceSupplier.firstContactorPhoneNumber}
					</p:column>
					
					<p:column>
						<f:facet name="header">联系地址</f:facet>
						#{_serviceSupplier.address}
					</p:column>
					
					<p:column style="text-align: center" width="120">
						<f:facet name="header">操作</f:facet>
						<p:button value="评价" outcome="grade_profession.xhtml" rendered="#{professionRatingRecordService.isRatable(_serviceSupplier.id)}">
							<f:param name="serviceSupplierId" value="#{_serviceSupplier.id}"></f:param>
						</p:button>
						
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{serviceSupplierProfessionRatingList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
